TotalPoll\Poll\Model D

Total Complexity 224
Dependencies 19
Dependents 4
Total lines 2,162
Lines of code 910
Logical lines of code 474
Comment lines 920
Methods 113
Properties 24

Methods 113

Method Rating Maintainability Complexity Lines of code
__construct()
C
25
24 175
applyPollExpressions()
A
48 9 31
getSettings()
S
61 6 11
getQuestions()
S
61 5 11
addChoice()
S
50 3 29
removeQuestion()
S
60 4 13
getQuestionsWhere()
S
60 4 13
getChoicesWhere()
S
60 4 13
getChoiceVotesPercentage()
S
57 3 16
getTimeLeftToStart()
S
64 4 9
getTimeLeftToEnd()
S
64 4 9
setChoice()
S
58 3 15
getUrl()
S
65 4 8
isAcceptingVotes()
S
60 3 14
setQuestion()
S
60 3 14
removeChoice()
S
61 3 12
hasVoted()
S
64 3 11
getViewVariables()
S
52 2 26
getShareAttributes()
S
55 2 19
toArray()
S
58 2 16
orderByVotes()
S
65 3 9
getReceivedQuestions()
S
63 3 10
getReceivedChoices()
S
63 3 10
orderByPosition()
S
65 3 9
getFields()
S
58 2 15
getHeader()
S
65 3 9
getFooter()
S
65 3 9
getSeoAttributes()
S
60 2 13
save()
S
61 2 13
getChoiceVotesFormatted()
S
55 1 21
render()
S
65 2 9
restorePollExpressions()
S
73 2 5
getErrorMessage()
S
79 2 3
isMigrated()
S
77 2 3
offsetGet()
S
78 2 3
incrementChoiceVotes()
S
63 2 10
getForm()
S
70 2 6
isResultsHidden()
S
71 2 5
getHiddenResultsContent()
S
69 2 7
getChoiceVotesWithLabel()
S
66 2 7
getChoicesRows()
S
71 2 5
getChoiceVotes()
S
70 2 6
getThumbnail()
S
70 2 5
getQuestionChoicesCount()
S
77 2 3
getQuestion()
S
78 2 3
getQuestionChoices()
S
78 2 3
getQuestionUidByChoiceUid()
S
78 2 3
getChoice()
S
77 2 3
getQuestionVotes()
S
78 2 3
getChoiceVotesNumber()
S
67 2 7
getChoices()
S
68 2 7
getAjaxUrl()
S
59 1 14
hasAboveVoteContent()
S
78 1 3
isPaginated()
S
80 1 3
hasBelowVoteContent()
S
78 1 3
hasAboveResultsContent()
S
78 1 3
hasBelowResultsContent()
S
78 1 3
orderByLabel()
S
82 1 3
isScreen()
S
80 1 3
refreshUid()
S
76 1 4
isWelcomeScreen()
S
80 1 3
offsetExists()
S
80 1 3
jsonSerialize()
S
81 1 3
offsetSet()
S
91 1 2
isVoteScreen()
S
80 1 3
isResultsScreen()
S
80 1 3
offsetUnset()
S
91 1 2
isThankYouScreen()
S
80 1 3
orderByRandom()
S
82 1 3
addQuestion()
S
91 1 2
isPasswordProtected()
S
80 1 3
getBelowResultsContent()
S
80 1 3
hasThankyouContent()
S
78 1 3
getTotalVotesNumber()
S
80 1 3
getChoiceVotesPercentageWithLabel()
S
79 1 3
getQuestionVotesWithLabel()
S
74 1 4
getChoicesCount()
S
80 1 3
getQuestionsCount()
S
80 1 3
getQuestionsForResults()
S
70 1 7
getQuestionsForVote()
S
70 1 7
getTotalVotesWithLabel()
S
71 1 6
getTotalVotes()
S
82 1 3
getError()
S
82 1 3
getPermalink()
S
80 1 3
getAction()
S
82 1 3
getTitle()
S
82 1 3
getUid()
S
81 1 3
getId()
S
81 1 3
getPollPost()
S
82 1 3
getSettingsItem()
S
66 1 9
setSettings()
S
81 1 3
getColumnWidth()
S
75 1 4
getLimitations()
S
82 1 3
hasWelcomeContent()
S
78 1 3
getAdminEditLink()
S
78 1 3
hasError()
S
80 1 3
setError()
S
81 1 3
setForm()
S
80 1 3
setAction()
S
79 1 3
setScreen()
S
76 1 4
setSettingsItem()
S
79 1 3
getAdminExportAsLink()
S
66 1 9
getPresetUid()
S
79 1 3
getRestrictions()
S
82 1 3
getTemplateId()
S
79 1 3
getAboveResultsContent()
S
80 1 3
getBelowVoteContent()
S
80 1 3
getAboveVoteContent()
S
80 1 3
getThankyouContent()
S
80 1 3
getWelcomeContent()
S
80 1 3
getScreen()
S
82 1 3
getPrefix()
S
77 1 3
isChoiceChecked()
S
78 1 3